package mapper;

import com.liu.mapper.UserMapper;
import com.liu.model.User;
import com.liu.service.UserService;
import com.liu.service.impl.UserServiceImpl;
import org.apache.commons.io.FileUtils;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import javax.annotation.Resource;
import java.util.List;

public class mapperText {


    @Test
    public void UsetMapperText(){
        ClassPathXmlApplicationContext classPathXmlApplicationContext = new ClassPathXmlApplicationContext("Application.xml");
        UserService userServiceImpl = classPathXmlApplicationContext.getBean("UserServiceImpl",UserService.class);
        List<User> users = userServiceImpl.selectUser();
        for (User user : users) {
            System.out.println(user);
        }
    }
    @Test
    public void JsonText(){
        FileUtils
    }
}
